package com.njiandan.tackpicture.fragment;


import android.content.Context;
import android.hardware.Camera;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.njiandan.tackpicture.R;
import com.njiandan.tackpicture.observer.ICaptureTakenEvent;
import com.njiandan.tackpicture.observer.VolumeChangedObserver;

/**
 * Created by johnson on 2015/7/25.
 */
public class FunctionFragment extends Fragment implements ICaptureTakenEvent {

    VolumeChangedObserver _volumeChanged;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_function, container,
                false);

        _volumeChanged = new VolumeChangedObserver(new Handler(), FunctionFragment.this);

        return view;
    }

    @Override
    public Context GetContext() {
        return getActivity().getApplicationContext();
    }

    @Override
    public void TakenPicture() {

    }


    void initCamera() {

    }
}
